package com.lanou.service.Impl;

import com.lanou.entity.Goods;
import com.lanou.mapper.GoodsMapper;
import com.lanou.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName GoodsServiceImpl
 * @Description TODO
 * @Author cuipengwei
 * @Date 2025年08月22日 19:39
 * @Version 1.0
 */
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;
    @Override
    public List<Goods> findAll() {
        List<Goods> all = goodsMapper.findAll();
        return all;
    }

    @Override
    public Goods findById(Integer id) {
        Goods byId = goodsMapper.findById(id);
        return byId;
    }
}
